package com.dwxt.community.admin.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.community.admin.service.InformationImgService;
import com.dwxt.community.entity.InformationImg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cms/admin/img")
public class InformationImgController {

    @Autowired
    private InformationImgService informationImgService;

    @RequestMapping("/pageList")
    public BaseResult selectPageList(){
       return informationImgService.selectPageList();
    }

    @RequestMapping("/insertOrUpDate")
    public BaseResult insertOrUpDate(InformationImg informationImg){
        return informationImgService.insertOrUpdate(informationImg);
    }

    @RequestMapping("/delete")
    public BaseResult deleteById(Integer id){
        return informationImgService.deleteById(id);
    }
}
